POV-Ray : Newsgroups : povray.advanced-users : <no subject> : <no subject> Server Time
28 Jul 2024 14:21:00 EDT (-0400)
  <no subject>  
From: Leonardo
Date: 27 Jan 2005 06:50:01
Message: <web.41f8d477c23a6d927bbadf50@news.povray.org>
I believe it's not possible with just one pass.

Untested idea: you could render two images, and combine them in your
favorite image manipulation software.

One of the images would be a scene with only the sphere in solid white
(ambient 1.0), with alpha output enabled. This would help you to determine
the boundaries of the sphere, and also get your anti-aliasing right.
The other image would be the final scene, with your sphere refracting
objects in the background. Don't bother with the background showing out of
the sphere.

The combination process would be multiplying the two images. This would
discard everything that's not inside the sphere.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.